package com.kgc.novel.constants;

/**
 * Jwt常量接口
 */
public interface JwtConstant {
    /**
     * 令牌自定义标识
     */
    String AUTHENTICATION = "Authentication";

    /**
     * 令牌前缀
     */
    String PREFIX = "Bearer ";

    /**
     * jwt缓存Key
     */
    String JWT_CACHE_KEY = "jwt:userId:";
    /**
     * 唯一标识
     */
    String USER_ID = "userId";
    /**
     * 用户名
     */
    String USER_NAME = "username";

    /**
     * 访问token标识
     */
    String ACCESS_TOKEN = "access_token";

    /**
     * 刷新token标识
     */
    String REFRESH_TOKEN = "refresh_token";

    /**
     * 过期标识
     */
    String EXPIRE_IN = "expire_in";
}
